from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

app_name = "staff"

router = DefaultRouter(trailing_slash=False)
router.register('staff', views.StaffViewSet, basename='staff')
router.register('download', views.StaffDownloadView, basename='download')
router.register('upload', views.StaffUploadView, basename='upload')
router.register('departments', views.DepartmentList, basename='departments')

urlpatterns = [
                  # path('departments', views.DepartmentList.as_view(), name='departments'),
                  # path('staff', views.StaffViewSet.as_view(), name='staff'),
                  path('active', views.ActiveStaffView.as_view(), name='active_staff'),
                  path('testcelery', views.TestCeleryView.as_view(), name='test_celery')
              ] + router.urls
